package top.hekun.study.core.util;



/**
 * MyMethodVisitor5 Demo 实例中使用的 ,
 * @Author: 贺坤
 * @Date: 2023/5/10 15:41
 */
public class MyMethodVisitor5Util {
    public static void parameterPrintln( int position, byte value ){
        System.out.println(String.format("第 %s 个参数: %s",position,value));
    }
    public static void parameterPrintln( int position, short value ){
        System.out.println(String.format("第 %s 个参数: %s",position,value));
    }
    public static void parameterPrintln( int position, int value ){
        System.out.println(String.format("第 %s 个参数: %s",position,value));
    }
    public static void parameterPrintln( int position, long value ){
        System.out.println(String.format("第 %s 个参数: %s",position,value));
    }
    public static void parameterPrintln( int position, float value ){
        System.out.println(String.format("第 %s 个参数: %s",position,value));
    }
    public static void parameterPrintln( int position, double value ){
        System.out.println(String.format("第 %s 个参数: %s",position,value));
    }
    public static void parameterPrintln( int position, char value ){
        System.out.println(String.format("第 %s 个参数: %s",position,value));
    }

    public static void parameterPrintln( int position, Object value ){
        System.out.println(String.format("第 %s 个参数: %s",position,value));
    }

    public static void parameterPrintln( int position, Void value ){
        System.out.println(String.format("第 %s 个参数: %s",position,value));
    }

    public static void returnPrintln( byte value ){
        System.out.println(String.format("返回值: %s",value));
    }
    public static void returnPrintln(  short value ){
        System.out.println(String.format("返回值: %s",value));
    }
    public static void returnPrintln( int value ){
        System.out.println(String.format("返回值: %s",value));
    }
    public static void returnPrintln(long value ){
        System.out.println(String.format("返回值: %s",value));
    }
    public static void returnPrintln(float value ){
        System.out.println(String.format("返回值: %s",value));
    }
    public static void returnPrintln( double value ){
        System.out.println(String.format("返回值: %s",value));
    }
    public static void returnPrintln( char value ){
        System.out.println(String.format("返回值: %s",value));
    }
    public static void returnPrintln( Object value ){
        System.out.println(String.format("返回值: %s",value));
    }
    public static void returnPrintln(  ){
        System.out.println(String.format("无返回值"));
    }

    public static void printlnRunTime( long time, String name ){
        System.out.println(String.format("%s 方法运行时间 ( %s )",name,time));
    }
}
